#ifndef __STEP_MOTOR_H_
#define __STEP_MOTOR_H_

#include "sys.h"

#define STEP_MOTOR_DEBUG 0

typedef enum
{
    ALL_ANGLE, /* >! 5.625°/64 */
    HALF_ANGLE /* >! 2.8125°/64 */
} step_motor_enum_t;

typedef struct
{
    uint8_t step_tick;       /* >! 0-8 */
    uint16_t step_angle;     /* >! 360°->4096 */
    uint8_t step_direct : 1; /* >! 0->anti,1->correct */
} step_motor_t;

step_motor_t *step_motor_struct_panel(void);
void step_motor_interrupt(void);

#endif
